﻿using com.lythen.file.Security.Entities;
using SQLite.CodeFirst;
using System.Data.Entity;

namespace com.lythen.file.Security.Configuration
{
    /***************************************************************************
     * CLR版本：4.0.30319.42000
     *唯一标识：1c1f91a6-a8ff-4a80-9012-70fcb357a865
     *  创建人：赖仁良
     *创建时间：2024/1/4 14:14:54
     *功能描述：
     * ----------------------------------------------------------------
     * 修改人：
     * 时间：
     * 修改说明：
     *=========================================================================*/
    /// <summary>
    /// 
    /// </summary>
    public class MyDbInitializer : SqliteCreateDatabaseIfNotExists<LythenContext>
    {
        public MyDbInitializer(DbModelBuilder modelBuilder) : base(modelBuilder)
        {
        }

        protected override void Seed(LythenContext context)
        {
            context.UserKeysSet.Add(new UserKeys() { UserName = "admin", PublicKey = "11", PrivateKey = "12" });
            base.Seed(context);
        }
    }
}
